package com.fzu.normalservice.client;

import com.fzu.commonutil.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zyq
 */
@FeignClient(name = "third-party-service", url = "http://47.115.204.20:38081/")
public interface ThirdPartyClient {
    /**
     * 地址信息转经纬度
     * @param address 地址信息
     * @return Coordinate
     */
    @GetMapping("/api/third-party/coordinate")
    R getCoordinate(@RequestParam String address);

}
